<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include  file = "include/base.jsp"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>My JSP 'idea.jsp' starting page</title>
	<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
	<style type="text/css">
  	
  	</style>
  </head>
 
  <body class = "body"> 
    <%@include file="include/top.jsp" %>
    <div class="container" >
	  <div class="row">
		<div class="span3">
			<%@ include file="include/left.jsp" %>
		</div>
		<div class="span9">
			<ul class="breadcrumb" style="margin-bottom:0px;border-radius: 3px 3px 0 0;margin-top:15px">
				<li class="active">
					<a href="javascript:;"><i class="icon-fire"></i>想法</a>
				</li>
			
				<li class="pull-right"><i class="icon-plus"></i><a href="newidea.jspx" class="link-black">发表想法</a></li>
			</ul>
			
			<div class="well" style="margin-bottom:20px;">
				
				<c:forEach items="${requestScope.page.list }" var="idea" varStatus="vs">
					<blockquote>
					<h4><a href="showidea.jspx?id=${idea.id }" >${idea.title }</a></h4>
					<br/>
					<p style="font-size:14px;line-height:1.5;">${idea.content }</p>
					<small>${idea.employee.username }发布于${idea.createtime }</small>
					<a href="editidea.jspx?id=${idea.id }" title="编辑"><i class="icon-pencil"></i></a>
					<a href="delidea.jspx?id=${idea.id }" title="删除"><i class="icon-trash"></i></a>
				</blockquote>
				
				</c:forEach>
				
				
				 <c:if test="${page.totalPages > 1 }">
		                <div class="pagination pull-right">
		                  <ul>
		                    <li ><a href="idea.jspx?p=1" >首页</a></li>
		                    <li><a href="idea.jspx?p=${(page.pageNum)-1 }" >上一页</a></li>
		                    <li><a href="idea.jspx?p=${(page.pageNum)+1}" >下一页</a></li>
		                    <li><a href="idea.jspx?p=${(page.totalPages)}" >尾页</a></li>
		                  </ul>
		                </div>
		          </c:if>
				<div class="clear"></div>
			</div>

		</div>
	   </div>
	</div>
	<script type="text/javascript" src="js/jquery.min.js"></script>
	
  </body>
</html>
